//
//  Func.m
//  C6_函数
//
//  Created by dllo on 15/10/13.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Func.h"

int mid(int a, int b, int c)
{
    
    int max = 0;
    int min = 0;
    int ret = 0;
    max = a > b ? a : b;
    max = max > c ? max : c;
    min = a < b ? a : b;
    min = min < c ? min : c;
    ret = a + b + c - max - min;
    return ret;
    
}